<template>
    <swiper :options="swiperOption">
      <!-- slides -->
      <swiper-slide v-for="item of list" :key="item.id">
        <img :src="item.imgUrl" style="height: 120px; width: 100%">
      </swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination"  slot="pagination"></div>
      </swiper>
</template>

<script>
  export default {
    name: 'HomeSwiper',
    props: {
      list: Array
    },
    data () {
      return {
        swiperOption: {
          pagination: '.swiper-pagination',
          dynamicBullets: true,
          loop: true,
          effect: 'flip'
        }
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">

</style>

